package com.wmcsk.dl.bean;

/**
 * @作者: XQ
 * @创建时间：2015/4/21 20:41
 * @类说明:各模块对象
 */
public class PluginBean implements Comparable<PluginBean> {
	public String url;   //更新地址
    public String apkName;   //apk名字
    public String appName;   //app名字
    public String packageName;  //包名
    public int apkSize;  //apk大小
    public String apkmd5;  //apk md5
    public int priority=100; //优先级，数值越小，优先级越高，
    public String versionCode; //版本号字符串
    public String pluginPath;
    public String launcherActivityName;
    public int downProgress;
    public String projectVersion;

    @Override
    public String toString() {
        return "PluginBean{" +
                "url='" + url + '\'' +
                ", apkName='" + apkName + '\'' +
                ", appName='" + appName + '\'' +
                ", packageName='" + packageName + '\'' +
                ", apkSize=" + apkSize +
                ", apkmd5='" + apkmd5 + '\'' +
                ", pluginPath='" + pluginPath + '\'' +
                ", launcherActivityName='" + launcherActivityName + '\'' +
                ", downProgress=" + downProgress +
                ", projectVersion="+projectVersion+
                ", priority=" + priority +
                ", versionCode='" + versionCode + '\'' +
                '}';
    }

    @Override
    public int compareTo(PluginBean another) {
        return this.priority-another.priority;

    }

}
